<?php
include_once("gateway/tdgDocu.php");
$tdg = new tdgDocu();
$row = null;
$dts = $tdg->getlist();
?>
<FIELDSET style="WIDTH: 600px; HEIGHT: auto">
    <LEGEND class=NormalBold>Documentación básica</LEGEND>
    <table class="tlbTracks" border="1" cellspacing="1" cellpadding="1">
        <thead>
            <tr>
                <th width="400">Nombre:</th>
                <th width="100">Abrir:</th>
                <th width="100">Descargar:</th>
            </tr>
        </thead>
        <tbody>
            <?php
            if($dts) {
                while ($row = mysql_fetch_assoc($dts)) {
                    $Nombre = $row['Nombre'];
                    $FileName = $row['FileName'];
                    echo("<tr>");
                    echo("<td>$Nombre</td>");
                    echo("<td align='center'><a href='docs/$FileName' target='newtab'><img src='image/open-icon.png' width='30' height='30' border='0' alt='Abrir'></a></td>");
                    echo("<td align='center'><a href='docs/download.php?file=$FileName'><img src='image/download-icon.png' width='30' height='30' border='0' alt='Descargar'></a></td>");
                    echo("</tr>");
                }
            }
            ?>
        </tbody>
    </table>
</FIELDSET>
